import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public final class PosnFromSatlt1Group {

        public byte posnFromSatlt1Cntr;
        public int posnFromSatlt1PosnLat;
        public int posnFromSatlt1PosnLgt;
        private PosnFromSatlt1Group(byte[] value) {
            ByteBuffer buff = ByteBuffer.wrap(value).order(ByteOrder.LITTLE_ENDIAN);
            posnFromSatlt1Cntr = buff.get();
            posnFromSatlt1PosnLat = buff.getInt();
            posnFromSatlt1PosnLgt = buff.getInt();
        }

        public static PosnFromSatlt1Group build (byte[] data) {
            return new PosnFromSatlt1Group(data);
        }

        public byte[] toBytes () {
            ByteBuffer buff = ByteBuffer.allocate(9).order(ByteOrder.LITTLE_ENDIAN);
            buff.put(posnFromSatlt1Cntr);
            buff.putInt(posnFromSatlt1PosnLat);
            buff.putInt(posnFromSatlt1PosnLgt);

            return buff.array();
        }
}